﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
    public class PersonalInformationManage
    {
        public static PersonalInformation AddPersonalInformation(PersonalInformation info)
        {
            return PersonalInformationService.AddPersonalInformation(info);
        }

        public static PersonalInformation ModifyPersonalInformation(PersonalInformation info)
        {
            return PersonalInformationService.ModifyPersonalInformation(info);
        }

        public static PersonalInformation GetPersonalInformationById(int pId)
        {
            return PersonalInformationService.GetPersonalInformationById(pId);
        }

        public static PersonalInformation GetPersonalInformationByNickname(string nickname)
        {
            return PersonalInformationService.GetPersonalInformationByNickname(nickname);
        }
        public static bool HasNickname(string nickname)
        {
            if (PersonalInformationService.GetPersonalInformationByNickname(nickname) != null)
                return true;
            else
                return false;
        }
        public static int Count()
        {
            return PersonalInformationService.Count();
        }
    }
}
